package wiz.client.ui.viewimpl;

import wiz.client.activities.GameScoreView;
import wiz.client.activities.finishedgame.FinishedGameView;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class FinishedGameViewImpl extends Composite implements FinishedGameView {

	private static FinishedGameViewImplUiBinder uiBinder = GWT.create(FinishedGameViewImplUiBinder.class);

	interface FinishedGameViewImplUiBinder extends UiBinder<Widget, FinishedGameViewImpl> {
	}

	public FinishedGameViewImpl() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	@UiField
	Button fStartNewGameButton;
	
	@UiField
	Button fSubmitScoreButton;
	
	@UiField
	GameScoreViewImpl fGameScoreView;
	
	
	@Override
	public HasClickHandlers getStartNewGameClickHandlers() {
		return fStartNewGameButton;
	}
	
	@Override
	public HasClickHandlers getSubmitScoreClickHandlers() {
		return fSubmitScoreButton;
	}
	
	@Override
	public GameScoreView getGameScoreView() {
		return fGameScoreView;
	}


}
